/*
 * @Author: 李九阳
 * @Date: 2021-12-13 20:51:56
 * @LastEditors: 李九阳
 * @LastEditTime: 2021-12-14 11:17:23
 */

/**
 * 本地缓存类
 * @class Storage
 */
export default {
  getSession(key: string): any {
    return sessionStorage.getItem(key);
  },
  setSession(key: string, value: any): void {
    sessionStorage.setItem(key, value);
  },
  removeItem(key: string): void {
    sessionStorage.removeItem(key);
  },
  clean(): void {
    sessionStorage.clear();
  },
};

// export default session;
